
with open("mouse.PAS.bed","r",encoding="utf8") as f:
    content = f.readlines()

output = list()
for line in content[1:]:
    line = line.strip().split('\t')
    output.append(
        '\t'.join([line[1],line[2],line[2],line[6],line[-5],line[3]])+"\n"
    )
with open("mm9_PolyA_DB.bed","w",encoding="utf8",newline="") as f:
    f.writelines(output)